package tw.miku.protocol.codec.gold;

import org.apache.mina.core.buffer.IoBuffer;

import tw.miku.constants.ProtocalConstants;
import tw.miku.protocol.codec.AbstractRequestMessagePack;

public class UserDropACardRequestPack extends AbstractRequestMessagePack
{

	public int cardId;

	public UserDropACardRequestPack(IoBuffer buffer)
	{
		super(buffer);
	}

	@Override
	public void decode()
	{
		super.decode();
		buffer.position(4);
		// isReady = ((buffer.get()) == 0);
		cardId = buffer.getInt();

	}

	@Override
	public short getTag()
	{
		return ProtocalConstants.USER_DROP_A_CARD;
	}

}
